// @ts-ignore
import config from "@/config"

//系统路由
const routes = {
	systemRouter: [{
			name: "layout",
			path: "/",
			component: () => import(/* webpackChunkName: "layout" */ '@/layout/index.vue'),
			redirect: config.DASHBOARD_URL,
			children: [
				{
					name: "home",
					path: "",
					component: () => import(/* webpackChunkName: "dashboard" */ '@/views/home.vue'),
					meta: {
						title: "程序小鸟",
						icon: "el-icon-home-filled"
					},
				},
				{
					name: "article",
					path: "/article",
					component: () => import(/* webpackChunkName: "dashboard" */ '@/views/article.vue'),
					meta: {
						title: "程序小鸟",
						icon: "el-icon-home-filled"
					},
				},
				{
					name: "category",
					path: "/category",
					component: () => import(/* webpackChunkName: "dashboard" */ '@/views/category.vue'),
					meta: {
						title: "程序小鸟",
						icon: "el-icon-home-filled"
					},
				},
				{
					name: "self",
					path: "/self",
					component: () => import(/* webpackChunkName: "dashboard" */ '@/views/self.vue'),
					meta: {
						title: "小鸟自述",
						icon: "el-icon-home-filled"
					},
				},
				{
					name: "show",
					path: "/show",
					component: () => import(/* webpackChunkName: "dashboard" */ '@/views/show.vue'),
					meta: {
						title: "小鸟自述",
						icon: "el-icon-home-filled"
					},
				}
			]
		}

	],
	dashboard: {
		name: "center",
		path: "/center",
		// @ts-ignore
		component: () => import(`@/layout/other/empty.vue`),
		meta: {
			title: "首页",
			icon: "el-icon-home-filled"
		},
		children: [
			{
				name: "dashboard",
				path: "/dashboard",
				meta: {
					title: "控制台",
					icon: "el-icon-monitor",
					affix: true
				},
				// @ts-ignore
				component: () => import(/* webpackChunkName: "dashboard" */ '@/views/home.vue'),
			}
		]
	}
}

export default routes;


